<%@ page language="java" import="com.bifrii.bo.*,com.bifrii.dao.*,com.bifrii.transferObjects.*,java.util.*" %>
 <% 

 Event e = (Event)session.getAttribute("session.newEvent");
 
 User u = UsersManager.getInstance().getUser((Integer)session.getAttribute("session.user"));
 		EventManager.getInstance().newEvent(e,u.getIdUser());

 		List<Route> routes = (List<Route>)session.getAttribute("session.routesList");
        
    	for(Route r: routes)
    	{
    		RouteManager.getInstance().newRoute(r);
    	}
    	response.sendRedirect("FrontController?res=indexEvent.jsp&id="+e.getIdEvent());
   %>